-
Notifications
You must be signed in to change notification settings - Fork 10
Niloofar / Dropdown implementations #12
Niloofar / Dropdown implementations #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we not doing testing?
12749aa
to
75426dd
Compare
@@ -1,3 +0,0 @@ | |||
const Button = () => <div>button</div>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need button, modal and dropdown components in the common folder cause we have them inside the ui folder.
So I removed these extra files.
@@ -1,7 +1,15 @@ | |||
import { describe, expect, it } from 'vitest'; | |||
import { render, screen } from '@testing-library/react'; | |||
import userEvent from '@testing-library/user-event'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved the test file to the __test__
folder!
@@ -1,21 +0,0 @@ | |||
// Button.stories.ts|tsx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This story was written for the old button component so I removed that
@@ -0,0 +1,75 @@ | |||
import { forwardRef, ElementRef, ComponentPropsWithoutRef } from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto generated component
const DropdownMenuPortal = Portal; | ||
const DropdownMenuSub = Sub; | ||
const DropdownMenuRadioGroup = RadioGroup; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't have a common drop-down style I removed all of the classnames, later when we want to use this we can pass the classes to it!
This PR includes our global dropdown component!